home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / sigpause.man < prev    next >
Encoding:
Text File  |  1989-04-10  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SIGPAUSE              C Library Procedures               SIGPAUSE
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      sigpause - atomically release blocked signals and wait for
  10.      interrupt
  11.  
  12. SSYYNNOOPPSSIISS
  13.      ssiiggppaauussee((ssiiggmmaasskk))
  14.      iinntt ssiiggmmaasskk;;
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      _S_i_g_p_a_u_s_e assigns _s_i_g_m_a_s_k to the set of masked signals and
  18.      then waits for a signal to arrive; on return the set of
  19.      masked signals is restored.  _S_i_g_m_a_s_k is usually 0 to indi-
  20.      cate that no signals are now to be blocked.  _S_i_g_p_a_u_s_e always
  21.      terminates by being interrupted, returning -1 with _e_r_r_n_o set
  22.      to EINTR.
  23.  
  24.      In normal usage, a signal is blocked using _s_i_g_b_l_o_c_k(2), to
  25.      begin a critical section, variables modified on the
  26.      occurrence of the signal are examined to determine that
  27.      there is no work to be done, and the process pauses awaiting
  28.      work by using _s_i_g_p_a_u_s_e with the mask returned by _s_i_g_b_l_o_c_k.
  29.  
  30. SSEEEE AALLSSOO
  31.      sigblock(2), sigvec(2)
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1986                          1
  64.  
  65.  
  66.  
  67.